package megamu.mesh;

import com.jellyfishumbrella.Site;
import com.jellyfishumbrella.Vertex;

public class Edge {
	public Vertex	vert1;
	public Vertex	vert2;
	public Site		site1;
	public Site		site2;

	public Edge() {

	}

	public Edge(Vertex A, Vertex B) {
		vert1 = A;
		vert2 = B;
	}

	public String toString() {
		if (vert1.x < vert2.x) {
			return vert1.toString() + "," + vert2.toString();
		} else {
			return vert2.toString() + "," + vert1.toString();
		}
	}
}
